package com.train.system.req.station;


import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.train.common.group.AddGroup;
import com.train.common.group.EditGroup;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class StationAddOrEditReq {


    /**
     * id
     */
    @NotNull(message = "【id】不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 站名
     */
    @NotBlank(message = "【站名】不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;

    /**
     * 站名拼音
     */
    @NotBlank(message = "【站名拼音】不能为空", groups = {AddGroup.class, EditGroup.class})
    private String namePinyin;

    /**
     * 站名拼音首字母
     */
    @NotBlank(message = "【站名拼音首字母】不能为空", groups = {AddGroup.class, EditGroup.class})
    private String namePy;
}
